package com.yanqu.road.logic.activity.foxcard.game.effect;

import com.yanqu.road.entity.activity.foxcard.FoxHandCard;
import com.yanqu.road.logic.activity.foxcard.game.FoxCardGameLogic;
import com.yanqu.road.logic.activity.foxcard.game.eFoxCardTriggerType;

/**
 * 手牌、出牌、弃牌次数相关
 * 加手牌上限 | 减手牌上限 | 加出牌次数 | 减出牌次数 | 加弃牌次数 | 减弃牌次数
 */
public class FoxCardEffect16 extends FoxCardEffectBase {
    @Override
    protected void effectHandle(FoxCardGameLogic gameLogic, FoxHandCard handCard) {
//        int addHandCardLimit = Integer.valueOf(effectConfig.getParamsList().get(0));
//        int decHandCardLimit = Integer.valueOf(effectConfig.getParamsList().get(1));
//        int addShowCardTimes = Integer.valueOf(effectConfig.getParamsList().get(2));
//        int decShowCardTimes = Integer.valueOf(effectConfig.getParamsList().get(3));
//        int addDropCardTimes = Integer.valueOf(effectConfig.getParamsList().get(4));
//        int decDropCardTimes = Integer.valueOf(effectConfig.getParamsList().get(5));
        if (triggerType == eFoxCardTriggerType.ADD && handCard == null) {
            gameLogic.reCalcCardOpTimes();
        } else if (triggerType == eFoxCardTriggerType.REMOVE) {
            gameLogic.reCalcCardOpTimes();
        }
    }
}
